
<%@page import="cn.com.dhcc.app.core.CoreEnv.CoreInitCtx"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/view/common/taglibs.jsp"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>${appname}</title>
<%@ include file="/WEB-INF/view/common/css_js_ace.jsp"%>
<script type="text/javascript">
jQuery(function($) {
	$("#iframe-modal").on(ace.click_event, function() {
		$('#toIframeDiv').html(  '<p class="text-center" style="font-size: 25px; color: #428bca;">'
			+	'<span class="ace-icon fa fa-cog fa-spin"></span>'
			+'</p>'
			+'<p class="text-center" style="font-size: 12px; color: #428bca; margin-top: -10px; margin-bottom: 0px;">'
			+	'<span>正在加载页面,请稍候......</span>'
			+'</p>');
			var hiddenByClick = false;
			window.parent.iframeModal("tttttt", $('#toIframeModal').html(), hiddenByClick);
	});
	
	$("#iframe-large-modal").on(ace.click_event, function() {
		$('#toIframeLargeDiv').html(  '<p class="text-center" style="font-size: 25px; color: #428bca;">'
			+	'<span class="ace-icon fa fa-cog fa-spin"></span>'
			+'</p>'
			+'<p class="text-center" style="font-size: 12px; color: #428bca; margin-top: -10px; margin-bottom: 0px;">'
			+	'<span>正在加载页面,请稍候...</span>'
			+'</p>');
			var hiddenByClick = false;
			window.parent.iframeModal("toIframeModal", $('#toIframeLargeModal').html(), hiddenByClick);
	});
});
</script>
</head>
<body>
	<div class="main-container" id="main-container">
		<div class="main-container-inner">
			<div class="main-content" style="margin-left: 0px;">
				<div class="breadcrumbs" id="breadcrumbs">
					<ul class="breadcrumb" style="margin-left: 4px;">
						<li><i class="icon-home home-icon"></i>首页
						</li>
						<li>通用模块
						</li>
						<li class="active">临时首页</li>
					</ul>
				</div>
				
				<div class="page-content">
					<div class="row">
						<div class="col-xs-12">
							<%
							out.print("欢迎访问 "+CoreInitCtx.appName);
							%>
						</div>
					</div>
				</div>
				<div>
					<p>
						<button class="btn btn-purple" id="iframe-modal">Iframe Modal</button>
						<button class="btn btn-warning" id="iframe-large-modal">Iframe Large Modal</button>
					</p>
				</div>
			</div>
		</div>
	</div>
	<div id="toIframeModal" class="modal fade" role="dialog" tabindex="-1" aria-labelledby="查看" aria-hidden="false">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class='widget-header widget-header-small'><h5 class='smaller'> Show Modal In Parent Or Top Body</h5></div>
				<div id="toIframeDiv"></div>
			</div>
		</div>
	</div>

	<div id="toIframeLargeModal" class="modal fade" role="dialog" tabindex="-1" aria-labelledby="查看" aria-hidden="false">
		<div class="modal-dialog modal-lg" style="width: 1200px;">
			<div class="modal-content">
				<div class='widget-header widget-header-small'><h5 class='smaller'> Show Modal In Parent Or Top Body</h5></div>
				<div id="toIframeLargeDiv"></div>
			</div>
		</div>
	</div>
</body>
</html>


